import { get, post, put, del, getWithArgs } from '../utils/xFetch2'

const homeAPI = {
    countByType: params => {
        return getWithArgs('api/v1/news/getCountByType', params)
    },
    countByWeek: params => {
        return getWithArgs('api/v1/news/weekCount', params)
    },
    latelyNews: params => {
        return getWithArgs('api/v1/news/list', params)
    }
}

export default homeAPI
